// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 引入资源请求插件
import VueResource from 'vue-resource'
// 引入axios
import Axios from 'axios'

// 引入mint-ui全部组件
import Mint from 'mint-ui';
// 引入mintUI的样式
import 'mint-ui/lib/style.css';
// 引入子组件对象
import headerVue from './components/SPAcomponent/header.vue';
import bodyVue from './components/SPAcomponent/body.vue';
import footerVue from './components/SPAcomponent/footer.vue';
import subVue from './components/SPAcomponent/sub.vue';
//  声明全局组件
Vue.component('headerVue', headerVue);
Vue.component('bodyVue', bodyVue);
Vue.component('footerVue', footerVue);
Vue.component('subVue', subVue);
Vue.config.productionTip = false

Vue.use(Mint);
Vue.use(VueResource);
Vue.prototype.$axios = Axios

// 创建全局过滤器
Vue.filter('myFailter', function(val){
  return '全局过滤器';
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})